﻿using System.Collections.Generic;
using System.Dynamic;
using System.IO;
using System.Json;
using System.Runtime.Serialization.Json;
using System.Text;
using System.Windows.Browser;
using System.Windows.Interop;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Json;

namespace jLight.Extensions
{
    public static class jQueryExtensions
    {      
        public static string First(this string value)
        {
            return value + ":first";
        }
        public static string Last(this string value)
        {
            return value + ":last";
        }
        public static string Even(this string value)
        {
            return value + ":even";
        }
        public static string Odd(this string value)
        {
            return value + ":odd";
        }
        public static string Header(this string value)
        {
            return value + ":header";
        }
        public static string Eq(this string value, int index)
        {
            return string.Format("{0}:eq({1})", value, index);
        }
        public static string Gt(this string value, int index)
        {
            return string.Format("{0}:gt({1})", value, index);
        }
        public static string Lt(this string value, int index)
        {
            return string.Format("{0}:lt({1})", value, index);
        }
        public static string Not(this string value, string index)
        {
            return string.Format("{0}:not({1})", value, index);
        }
    }
}